// 配置
// 参数  dev(开发)   product（生产）
const config = {
    product:false,
    devHost:'http://jx.xuzhixiang.top/',
    proHost:'http://www.xuzhixiang.top/',
    host:function(){
       return  this.product ? this.proHost:this.devHost
    }


}

// 接口地址 定义
const regApi  = `${config.host()}ap/api/reg.php`
const loginApi  = `${config.host()}ap/api/login.php`
const addgoodsApi =  `${config.host()}ap/api/goods/goods-add.php`
const goodslistApi = `${config.host()}ap/api/productlist.php`
const deletegoodsApi = `${config.host()}ap/api/goods/goods-delete.php`
const getgoodsApi =`${config.host()}ap/api//detail.php?id=`
const addcarApi = `${config.host()}ap/api/add-product.php`
const cartListApi  = `${config.host()}ap/api/cart-list.php`
const updateCarApi = `${config.host()}ap/api/cart-update-num.php`
const deleteCarApi = `${config.host()}ap/api/cart-delete.php`










